module.exports = {
  base: "/vuepress/",
  themeConfig: {
    navbar: [
      // // NavbarItem
      // {
      //   text: "文章",
      //   link: "/articles/",
      // },
      // NavbarGroup
      {
        text: "文章",
        link: "/articles/",
        children: ["/articles/README.md", "/articles/npm-lock-file.md"],
      },
      // NavbarGroup
      {
        text: "指南",
        children: ["/guide/README.md", "/guide/getting-started.md"],
      },
      // 字符串 - 页面文件路径
      "/README.md",
    ],
  },
  plugins: [
    [
      "@vuepress/docsearch",
      {
        appId: "6DLHQXLDPB",
        apiKey: "c270d7845683e40c0d91efeadfc52de5",
        indexName: "docs_vuepress",
        locales: {
          "/": {
            placeholder: "Search Documentation",
          },
          "/zh/": {
            placeholder: "搜索文档",
          },
        },
      },
    ],
  ],
  head: [["script", { src: "/vuepress/js/load.js" }]],
};
